linux x86/64: Fix supervisor_mode_kernel test to read a single byte.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 25 Apr 2007 08:46:43 +0000 (09:46 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 25 Apr 2007 08:46:43 +0000 (09:46 +0100)
Spotted by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S

index cc9694522f538c9deb56e85d94f874d657295218..f9e16e3f7838f6be8d4b2048eb77769cd26c00f9 100644 (file)
@@ -160,7 +160,7 @@ NMI_MASK = 0x80000000
        testl $NMI_MASK,2*8(%rsp)
        jnz   2f
 
-       cmp   $0x00,(xen_features+XENFEAT_supervisor_mode_kernel)(%rip)
+       cmpb  $0,(xen_features+XENFEAT_supervisor_mode_kernel)(%rip)
        jne   1f
 
        /* Direct iret to kernel space. Correct CS and SS. */